home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
STRINGS
/
PACKAGE6
/
GREATER.DOC
< prev
next >
Wrap
Text File
|
1990-07-25
|
1KB
|
37 lines
----------------------------------------------------------------------------
FirstGreaterThanSecond
----------------------------------------------------------------------------
declaration: function FirstGreaterThanSecond ( String1,
String2:
TypeString):
boolean;
purpose: Returns a boolean; if String1 is greater than String2 then
boolean is set to true, if they aren't then it is set to
false.
precondition: String1 and String2 - both are two Strings that have been
initialized and have a value of TypeString.
postcondition: String1 and String2 do not change. The function is either
set to true or false.
special cases: none
example: begin
.
.
.
if String1 > String2 then
FirstGreaterThanSecond := true
else
FirstGreaterThanSecond := false
.
.
.
end
----------------------------------------------------------------------------